<?php

namespace app\api\controller;

use app\common\controller\Api;
use app\admin\model\Plan;


/**
 * 首页接口
 */
class Index extends Api
{
    //protected $noNeedLogin = ['*'];
    //protected $noNeedRight = ['*'];

    /**
     * 首页
     *
     */
    public function index()
    {
//        public function getInfo($id=null,$g_id=null,$p_id=null,$project_id=null,$admin_id=null,$status=null,$order="weigh desc,id desc",$page=0,$pageCount=10) {
        $params = $this->request->param();
        $userId = $params['userId'];
        $page = $params['page'];
        $pageCount = $params['pageCount'];
        $plan = new Plan();
        $this->success('请求成功!!!',$plan->getInfo(null,null,null,null,$userId,1,null,$page ,$pageCount ));

    }
}
